<?php
	require_once './handler/check_session.php';
	$message = $_GET['message'];
	$image = "ressources/info_msg.png";
	switch ($_GET['type']) {
		case "success":
			$image = "ressources/success_msg.png";
			break;
		case "error":
			$image = "ressources/error_msg.png";
			break;
		default:
			$image = "ressources/info_msg.png";
			break;
	}
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US" lang="en-US">
    <head>
        <title>Accueil</title>
        <meta http-equiv='Content-Type' content='text/html; charset=utf-8'/>
        <link rel="STYLESHEET" type="text/css" href="style/header_footer_style.css" />
        <link rel="STYLESHEET" type="text/css" href="style/main_style.css" />
    </head>

    <body>
    	<!-- HEADER -->
        <?php include_once './include/header.php'; ?>
        <!-- MAIN -->
		<div id="main" class='message'><img src="<?php echo $image; ?>"/>&nbsp;<?php echo $message; ?></div>	
		<!-- FOOTER -->
		<?php include_once './include/footer.php';?>
    </body>
</html>